import {defineStore} from 'pinia';

export const useCounterStore=defineStore("counter",{
    state:()=>({
        count:1
    }),
    getters:{
        doubleCount:function(state){
            return state.count*2;
        }
    },
    actions:{
        increment(){
            this.state+=2;
        }
    }

})